GetPhysical
GetPhysical Translate logical addresses to physical ones
#include <Memory.h> Memory Manager
Debugger Support Under Virtual Memory
OSErr GetPhysical( addresses, physicalEntryCount);
LogicalToPhysicalTable * addresses is a translation table
unsigned long *physicalEntryCount specifies the number of physical
entries
returns Error Code; 0=no error
The GetPhysical function translates logical addresses into their
corresponding physical addresses.
addresses is a translation table, that is, an array of ordered pairs
(address and count).
physicalEntryCount specifies the number of physical entries to translate.
Returns: an operating system Error Code.
noErr (0) No error
paramErr (-50) Error in parameter list
notLockedErr (-623) Specified range of memory is not locked
interruptsMaskedErr (-624) Called with interrupts masked

Notes: GetPhysical translates up to the size of the table or until the translation
is completed, whichever comes first. If GetPhysical is called with a table
size of 0, the number of table entries needed to translate the entire address
range is returned. On exit from this function, the virtual information is
updated to indicate the next virtual address and the number of bytes left to
translate. The logical address range must be locked to ensure validity of the
translation data.